def parse(self, response):
    self.logger.info('A response from %s just arrived!',response.url)
import  scrapy
class MySpider(scrapy.Spider):
    name = 'testdemo.com'
    allowed_domains=['testdemo.com']
    start_urls=[
        'http://www.testdemo.com/1.html,'
        'http://www.testdemo.com/2.html,'
        'http://www.testdemo.com/3.html,'
    ]
def parse(self, response):
    for h3 in response.xpath('//h3').extract():
        yield {"title":h3}
    for url in response.xpath('//a@href').extract():
        yield scrapy.Request(url,callback=self.parse)
